package base.controller;

import base.dao.SqlServerTestDao;
import base.model.Result;
import base.service.SqlServerTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author : GuoFei
 * @date : 2018/12/22 10:00
 */
@Controller
@RequestMapping("sql")
public class SqlServerTestController {

    @Autowired
    private SqlServerTestService service;

    @RequestMapping("add")
    @ResponseBody
    public Result add(boolean canRun){
        return service.add(canRun);
    }

}
